// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class ReportToCDYD : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<ReportToCDYD, MasterDbContextLocator>
    {

        public long RptId { get; set; }
        public int? RptType { get; set; }
        public string RptIdStr { get; set; }
        public DateTime? RptTime { get; set; }
        public string dtuId { get; set; }
        public double? GENVOLTL1 { get; set; }
        public double? GENVOLTL2 { get; set; }
        public double? GENVOLTL3 { get; set; }
        public double? GENCURRENTL1 { get; set; }
        public double? GENCURRENTL2 { get; set; }
        public double? GENCURRENTL3 { get; set; }
        public bool? SEEMINGMAIN { get; set; }
        public decimal? RUNNINGPERIOD { get; set; }
        public int? CRANKTIMES { get; set; }
        public DateTime? DATECLOCK { get; set; }
        public DateTime? GENSTARTTIMEMerge { get; set; }
        public decimal? RUNNINGPERIODMerge { get; set; }
        public decimal? RUNNINGSPAN { get; set; }
        public DateTime? GENSTARTTIMENOLOAD { get; set; }
        public DateTime? GENSTARTTIME { get; set; }
        public DateTime? GENSTOPTIME { get; set; }
        public decimal? KWPOWER { get; set; }
        public decimal? KWPOWERMerge { get; set; }
        public decimal? OilConsume { get; set; }
        public double? GpsLat { get; set; }
        public double? GpsLgt { get; set; }
        public double? BasLat { get; set; }
        public double? BasLgt { get; set; }
        public bool? bGpsLoc { get; set; }
        public bool? bBasLoc { get; set; }
        public string LAC { get; set; }
        public string CellID { get; set; }
        public string GenOrdinal { get; set; }
        public bool? BReportOK { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public int? AdminCode { get; set; }
        public string Sendjson { get; set; }
        public string Sendreturn { get; set; }
    
        public void Configure(EntityTypeBuilder<ReportToCDYD> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasKey(e => e.RptId)
                    .HasName("PK__ReportTo__A50342A599632B7C");

                entityBuilder.Property(e => e.AreaCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.CellID).HasMaxLength(50);

                entityBuilder.Property(e => e.DATECLOCK).HasColumnType("datetime");

                entityBuilder.Property(e => e.GENSTARTTIME).HasColumnType("datetime");

                entityBuilder.Property(e => e.GENSTARTTIMEMerge).HasColumnType("datetime");

                entityBuilder.Property(e => e.GENSTARTTIMENOLOAD).HasColumnType("datetime");

                entityBuilder.Property(e => e.GENSTOPTIME).HasColumnType("datetime");

                entityBuilder.Property(e => e.GenOrdinal).HasMaxLength(50);

                entityBuilder.Property(e => e.KWPOWER).HasColumnType("decimal(18, 3)");

                entityBuilder.Property(e => e.KWPOWERMerge).HasColumnType("decimal(18, 3)");

                entityBuilder.Property(e => e.LAC).HasMaxLength(50);

                entityBuilder.Property(e => e.OilConsume).HasColumnType("decimal(18, 3)");

                entityBuilder.Property(e => e.RUNNINGPERIOD).HasColumnType("decimal(18, 4)");

                entityBuilder.Property(e => e.RUNNINGPERIODMerge).HasColumnType("decimal(18, 4)");

                entityBuilder.Property(e => e.RUNNINGSPAN).HasColumnType("decimal(18, 4)");

                entityBuilder.Property(e => e.RptIdStr).HasMaxLength(50);

                entityBuilder.Property(e => e.RptTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.Sendjson).HasMaxLength(4000);

                entityBuilder.Property(e => e.Sendreturn).HasMaxLength(4000);

                entityBuilder.Property(e => e.dtuId).HasMaxLength(50);
        }

    }
}

